<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script type="text/javascript" src="__PUBLIC_HOME__/js/jquery.form.js"></script>
<script type="text/javascript">
    $('form').submit(function(){
        $(this).ajaxSubmit({
            url:"{:U('login')}",
            type:'post',
            dataType:'json',
            success:function(msg){
                if(msg.status==1){
                    location.href="/";

                }else{
                    layer.msg(msg.msg);
                }
            }
        });
        return false;
    });


    $('#verify').click(function(){
        var url = "{:U('code')}"+"?date="+ new Date().getTime();
        $(this).attr('src',url);
    });
</script>